#!/bin/env python
import re

p = re.compile(r'tags\/(.*-REL-2011\d{4})\/')

def main(f):
	tags = []
	file = open(f)
	for line in file.readlines():
		found =  p.findall(line)
		if found:
		#	print found[0]
			if not found[0] in tags:
				tags.append(found[0])
	print tags			

if __name__ == '__main__':
	import sys
	main(sys.argv[1])

